﻿using System;
using System.Collections.Generic;

using SubjectWorkShop.Core.Model;

namespace SubjectWorkShop.Core.IDAL
{
    /// <summary>
    /// 专题接口
    /// </summary>
    public interface ISubject
    {
        /// <summary>
        /// 根据给定ID获取专题信息
        /// </summary>		
        /// <returns>返回专题的 SubjectInfo 类</returns>
        SubjectInfo getSubjectById(int id);

        /// <summary>
        /// 获取所有专题信息
        /// </summary>		
        /// <returns>返回专题的 SubjectInfo 类</returns>
        IList<SubjectInfo> getSubjects();

        /// <summary>
        /// 更新专题信息
        /// </summary>		
        /// <returns>若成功返回 true</returns>
        Boolean UpdateSubjects(SubjectInfo subject);

        /// <summary>
        /// 添加专题
        /// </summary>		
        /// <returns>若成功返回 true</returns>
        int AddSubjects(SubjectInfo subject);


    }
}
